package yesjava;

public class Person  {
    private Integer id;
    private String name;
    private String sex;
    private String personNo;

    public Person() {
    }

    public Person(Integer id, String name, String sex, String personNo) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.personNo = personNo;
    }

    public Integer getId() {
        return id;
    }

    public Person setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Person setName(String name) {
        this.name = name;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public Person setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getPersonNo() {
        return personNo;
    }

    public Person setPersonNo(String personNo) {
        this.personNo = personNo;
        return this;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", personNo='" + personNo + '\'' +
                '}';
    }
}
